@import "variable";

img {
  max-width: 100%;
}
// tab
.ivu-tabs {
    height: 100%;
}
.ivu-tabs-nav-container {
    overflow: inherit;
    height: auto !important;
}
.ivu-tabs-content {
    height: 100%;
}
.ivu-tabs-tabpane {
    height: e('calc(100% - 45px)');
    padding: @space / 2 0;
    position: relative;
    // background-color: @bg-light;
    &.scroll {
        overflow: auto;
    }
}
.ivu-tabs-nav-prev,
.ivu-tabs-nav-next {
    top: 20%;
}
.ivu-page-item-jump-next, .ivu-page-item-jump-prev, .ivu-page-next, .ivu-page-prev {
    background-color: @white;
}
.ivu-tabs-bar {
    height: @size * .6;
    margin-bottom: 0 !important;
    border-color: @borderColor !important;
    background-color: @white;
    .tab-total {
        margin-right: @space * 5;
        font-size: 14px;
        font-weight: bold;
    }
    .ivu-form-item {
      margin-bottom: 0;
    }
}
.ivu-tabs-nav .ivu-tabs-tab {
    height: @size * .6 !important;
    line-height: @size * .6 !important;
    padding: 0 @space * 2 !important;
    font-size: 20px;
}
.ivu-tabs-nav-right {
    height: @size * .6;
    z-index: 1;
    .flexRight();
    position: relative;
    .item {
        font-size: @size * .14;
        margin-right: @space;
        animation: flip 300ms;
    }
}
.ivu-tabs-mini {
  .ivu-tabs-bar {
    height: @size * .5 !important;
    line-height: @size * .5 !important;
  }
  .ivu-tabs-tab {
    height: @size * .5 !important;
    line-height: @size * .5 !important;
    padding: 0 @space * 2;
    font-size: 14px;
  }
}
.ivu-tabs-nav .ivu-tabs-tab:hover {
  color: @mainColor !important;
}

// table
.ivu-table {
    background-color: @bg-light;
}
.ivu-table-cell {
    width: 100%;
}
.ivu-table-body {
    // overflow-x: hidden;
    // overflow-y: auto;
    overflow: auto;
}
.ivu-table-stripe .ivu-table-body tr:nth-child(2n) td {
    background-color: #f7faff;
}
.ivu-tabs .ivu-tabs-content-animated {
    transition: transform 0ms ease-in-out !important;
}
.ivu-table  {
    th {
        font-weight: normal;
        // background-color: #fff;
    }
    td {
    }
}
.ivu-table th, .ivu-table td {
  height: 40px;
}
.ivu-table-sort {
    height: 13px;
}
.ivu-poptip-body-content {
    max-height: @size * 3;
}

// form
.ivu-form-item {
    margin-bottom: @space*2;
    .ivu-date-picker {
        width: 100%;
    }
    .ivu-form-item-label {
        font-size: 13px !important;
    }
    &.font-red {
        .ivu-form-item-label {
            color: @red;
        }
    }
}
.ivu-form .ivu-radio-group {
    // line-height: 1;
}
.ivu-form .ivu-form-item-label {
    line-height: 31px !important;
    padding: 0 !important;
    padding-right: @space !important;
}
.ivu-select-multiple .ivu-select-selection {
    max-height: @size;
    overflow: auto;
}
textarea.ivu-input {
    font-size: 12px;
}

// image upload
.ql-container {
    min-height: 200px;
}
.ql-toolbar.ql-snow {
    position: relative;
}
.vicp-img {
    max-width: unset;
}

// editor
.ql-toolbar.ql-snow {
    background-color: @white;
}
.ql-container {
    background-color: @bg-light;
}
.ql-snow .ql-picker {
    line-height: 24px;
}
.ql-snow .ivu-tooltip {
    line-height: 24px;
    height: 24px;
    float: left;
}

.fullscreen-modal {
    .ivu-modal {
        margin-bottom: 0;
    }
}
// model
.ivu-modal {
    margin-bottom: @space * 2;
    .ivu-modal-header p {
        overflow: unset;
    }
    .ivu-tabs-tab {
        line-height: unset !important;
        font-size: unset !important;
        height: 30px !important;
        line-height: 30px !important;
    }
    .ivu-tabs-bar {
        height: 30px !important;
    }
    .ivu-tabs-tabpane {
        padding-top: @space;
    }
}
.ivu-modal-body {
    position: relative;
}

// button
.ivu-btn-ghost {
    background-color: @white;
    color: #515a6e;
    &:hover {
        background-color: @bg-light;
    }
}

// autocomplate
.ivu-auto-complete.ivu-select-dropdown {
    max-height: 300px;
    overflow: auto;
}

.ivu-select-disabled .ivu-select-selection,
.ivu-input[disabled],
fieldset[disabled] .ivu-input,
.ivu-input-number-disabled .ivu-input-number-input,
.ivu-btn[disabled] {
    color: #999;
}

// dropdown
.ivu-dropdown-menu {
    max-height: @size * 3;
    overflow: auto;
}

.ivu-table-header
.ivu-table-cell {
    cursor: pointer;
}
.vue-treeselect__control {
  height: 32px !important;
}
.ivu-tabs-nav-container {
  outline: none;
}
.long-radio {
  .ivu-radio-wrapper {
    margin-right: @space * 2;
  }
}
.ivu-color-picker .ivu-select-dropdown {
  height: 238px;
}
.ivu-color-picker-confirm {
  padding-left: @space;
  overflow: hidden;
  .ivu-color-picker-confirm-color {
    position: relative;
    top: 0;
    left: 0;
  }
  button {
    margin-top: @space / 2;
    margin-right: @space / 2;
    float: right;
  }
}
.ivu-tabs-ink-bar {
  display: none;
}
.vjs-poster {
  background-size: cover;
}
.vjs-custom-skin > .video-js .vjs-big-play-button {
  top: 68%!;
  left: 50%!;
  width: 2em;
  margin-top: 0 !important;
  .radius(50%);
  position: absolute;
  transform: translate(-50%, -50%);
}
.vue-treeselect__multi-value-item {
  padding: 0;
  background: #f7f7f7;
  .border(#e9eaec);
  color: #666;
}
.vue-treeselect__value-remove {
  color: #666;
}
.ivu-cascader-arrow, .ivu-select-arrow {
  margin-top: 0;
}
.calendar {
  background: #fff;
}
.badge {
  display: block !important;
}
.cal-colors {
  .cal-item {
    width: 44px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
  }
}
.start .ivu-select-selection {
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.start-input .ivu-input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.ivu-select-dropdown {
  max-height: @size * 2.5;
}
.table-cell-tool {
  width: 100%;
  .ivu-table-cell-tooltip-content {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.ivu-row {
  // display: block !important;
}